<template>
    <div>
        <input type="text" v-model="uName">
    </div>
</template>

<script setup>
    import { computed } from 'vue';
    const uName = computed({
        get() {
            return '张三'
        },
        set(val) {
            // 进行修改
            console.log('修改了');
            
        }
    })
</script>

<style lang="scss" scoped>

</style>